package com.mike.config;

import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.JFinalConfig;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jfinal.ext.handler.ContextPathHandler;
import com.mike.home.HomeController;
import com.mike.search.SearchController;
import com.mike.welcome.WelcomeController;

public class Config extends JFinalConfig {
public void configConstant(Constants me) {
me.setDevMode(true);
me.setBaseViewPath("WEB-INF/template");

}
public void configRoute(Routes me) {
me.add("/welcome", WelcomeController.class);
me.add("/home",HomeController.class);
me.add("/search",SearchController.class);
}
public void configPlugin(Plugins me) {
	
}
public void configInterceptor(Interceptors me) {
	
}
public void configHandler(Handlers me) {
	me.add(new ContextPathHandler("CPATH"));
}
}